package cn.bdqn.hospital.dao;

import cn.bdqn.hospital.entity.DrugClass;

import java.sql.SQLException;
import java.util.List;

public interface DrugClassDao {
    /**
     * 查询所有分类的药品信息
     * @return
     * @throws SQLException
     */
   public List<DrugClass> getAll() throws SQLException;

    /**
     * 通过名称查询 中药 西药 特殊药
     * @return
     * @throws SQLException
     */
   public DrugClass getDrugClassByclassName( String className) throws  SQLException;

    /**
     * 通过分类id查询
     * @param drugClassId
     * @return
     * @throws SQLException
     */
    public DrugClass getDrugClassByDrugclassId(Integer drugClassId) throws SQLException;
}
